<div class="wrap">
	<h2>
		<?php echo $Title;?>
		<a class="add-new-h2" href="<?php echo $Url.'add';?>">
			Add New
		</a>	
	</h2>
	<form method="get" action="<?php echo current_url();?>" id="posts-filter">
		<div class="manage-menus tablenav top">
			<div class="toolbar wp-filter">
				<div class="alignleft">
					<label for="media-attachment-filters" class="screen-reader-text">Filter by type</label>
					<select class="postform" id="group_id" name="group_id">
						<option selected="selected" value="0">
							View all group
						</option>
						<?php foreach($dataUserGroup as $value):?>
							<option value="<?php echo $value->group_id;?>" <?php echo ($value->group_id == $this->input->get('group_id') ? 'selected="selected"':'');?>><?php echo $value->group_name;?></option>
						<?php endforeach;?>
					</select>
				</div>
				<div class="alignright">
					<input type="search" placeholder="Search" name="text_search" id="post-search-input" class="search" />
					<input type="submit" value="Filter" class="button" id="search-submit" name="" />
				</div>
				<br class="clear">
			</div>
		</div>
	</form>
	<form method="get" action="<?php echo current_url();?>" id="posts-filter">	
		<table cellspacing="0" class="wp-list-table widefat fixed">
			<thead>
				<tr>
					<th style="" class="manage-column column-cb check-column" id="cb" scope="col">
						<label for="cb-select-all-1" class="screen-reader-text">
							Select All
						</label><input type="checkbox" id="cb-select-all-1">
					</th>					
					<th style="" class="manage-column column-username sortable desc" scope="col">
						<a href="http://localhost/wordpress/wp-admin/edit.php?s&amp;post_status=all&amp;post_type=post&amp;action=-1&amp;m=0&amp;cat=0&amp;mode=list&amp;action2=-1&amp;orderby=title&amp;order=asc">
							<span>
								Username
							</span>
							<span class="sorting-indicator">
							</span>
						</a>
					</th>
					<th style="" class="manage-column column-hide" scope="col">
						Nickname
					</th>					
					<th style="" class="manage-column" scope="col">
						E-mail
					</th>
					<th style="" class="manage-column column-hide" scope="col">
						Group
					</th>					
					<th style="" class="manage-column column-date sortable asc" id="date" scope="col">
						<a href="http://localhost/wordpress/wp-admin/edit.php?s&amp;post_status=all&amp;post_type=post&amp;action=-1&amp;m=0&amp;cat=0&amp;mode=list&amp;action2=-1&amp;orderby=date&amp;order=desc">
							<span>
								Date
							</span>
							<span class="sorting-indicator">
							</span>
						</a>
					</th>
				</tr>
			</thead>
			<tbody id="the-list">
				<?php if(!empty($dataResult)):?>
					<?php foreach($dataResult as $value):?>
					<tr valign="top">
						<th class="check-column" scope="row">
							<input type="checkbox" value="1" name="post[]" id="cb-select-1">
							<div class="locked-indicator">
							</div>
						</th>				
						<td class="column-username">
							<strong>
								<a title="Edit" href="<?php echo $Url.'edit/'.$value->user_id;?>" class="row-title">
									<?php echo $value->username;?>
								</a>
							</strong>
							<div class="row-actions">
								<span class="edit">
									<a title="Edit this item" href="<?php echo $Url.'edit/'.$value->user_id;?>">
										Edit
									</a>|
								</span>
								<span class="trash">
									<a href="<?php echo $Url.'delete/'.$value->user_id;?>" title="Delete this item" class="submitdelete">
										Delete
									</a>
								</span>
							</div>
						</td>
						<td class="column-hide">
							<?php echo $value->nickname;?>
						</td>
						<td>
							<a href="mailto:<?php echo $value->email;?>"><?php echo $value->email;?></a>
						</td>
						<td class="column-hide">
							<?php echo $value->group_name;?>
						</td>					
						<td class="date column-date">
							<abbr title="<?php echo $value->create_date;?>">
								<?php echo date("Y/m/d", strtotime($value->create_date));?>
							</abbr>
						</td>
					</tr>
					<?php endforeach;?>
				<?php else:?>
				
				<?php endif;?>
			</tbody>
		</table>
		<div class="tablenav bottom">
			<div class="alignleft actions bulkactions">
				<input type="submit" value="Delete" class="button action" id="doaction2" name="">
			</div>		
			<div class="tablenav-pages">
				<span class="pagination-links">
					<a
						href="javascript:void();" title="Go to the first page" class="first-page disabled">«
					</a>
					<a
						href="javascript:void();" title="Go to the previous page" class="prev-page disabled">‹
					</a>
					<span class="paging-input">
						1 of
						<span class="total-pages">
							1
						</span>
					</span>
					<a
						href="javascript:void();" title="Go to the next page" class="next-page disabled">›
					</a>
					<a
						href="javascript:void();" title="Go to the last page" class="last-page disabled">»
					</a>
				</span>
			</div>
			<br class="clear">
		</div>
	</form>
</div>